package com.snatch.deal.shop.store.dds;

public class DdsHolder {
    private static final ThreadLocal<String> HOLDER = new ThreadLocal<>();  
  
    public static void setDS(String ddsName) {  
        if (ddsName == null){  
            throw new RuntimeException("set ddsMode failed");  
        }  
  
        HOLDER.set(ddsName);  
    }  
  
    public static void release(){  
        HOLDER.remove();  
    }  
  
    public static String getDS(){  
        return HOLDER.get();  
    }  
}  